%
% Copyright (c) 2015, Yarpiz (www.yarpiz.com)
% All rights reserved. Please read the "license.txt" for license terms.
%
% Project Code: YPEA114
% Project Title: Implementation of Artificial Bee Colony in MATLAB
% Publisher: Yarpiz (www.yarpiz.com)
% 
% Developer: S. Mostapha Kalami Heris (Member of Yarpiz Team)
% 
% Contact Info: sm.kalami@gmail.com, info@yarpiz.com
%

function z=Sphere(x)

    %z=sum(x.^2);
    %z=sum(abs(x+0.5).^2);
    [n,m]=size(x);
   % z=sum(x.^2-10*cos(2*pi*x)+10);
   % z=-20*exp(-0.2*sqrt(sum(x.^2))/n)-exp(sum(cos(2*pi*x))/n)+20+exp(1);
     z=1/4000*sum(x.^2)-prod(cos(x))+1;
end
